package com.zr.daoimpl;

import java.util.List;

import org.hibernate.Query;
import org.springframework.stereotype.Repository;

import com.zr.dao.ShoScopDao;
import com.zr.model.Cdisstation;
@Repository("shoscopdao")
public class ShoScopDaoImpl extends BaseDaoImpl implements ShoScopDao{

	@Override
	public List findStation(String uname) {
		
		String hql="from Cdisstation as cd where cd.cuser.uname=:uname";
		
		Query query=this.getCurrentSession().createQuery(hql);
		
		query.setString("uname", uname);
		List<Cdisstation>li=query.list();
		
		return li;
	}

}
